package com.longyiqun.apitest;

import static org.fusesource.jansi.Ansi.*;
import static org.fusesource.jansi.Ansi.Color.*;

/**
 * program: ApiTest
 * package: com.longyiqun.apitest
 * author: 龙轶群
 * create: 2018-04-26 11:19
 **/

public class YLog {

    // 正常输出Log
    public static void Common(String log) {
        System.out.println(log);
    }

    // 输出 (红 * 绿) 文字
    static void RedGreen(String redString, String greenString) {
        System.out.println(ansi().fg(RED).a(redString).fg(GREEN).a(greenString).reset());
    }

    // 输出 (蓝 * 黑)
    static void BlueBlack(String blueString, String whiteString) {
        System.out.println(ansi().fg(BLUE).a(blueString).fg(BLACK).a(whiteString).reset());
    }

    // 输出 (洋红 * 黄)
    static void MagentYellow(String magentaString, String yellowString) {
        System.out.println(ansi().fgBrightMagenta().a(magentaString).fgYellow().a(yellowString).reset());
    }

    // 输出 (洋红 * 黄)
    static void GreenRed(String greenString, String redString) {
        System.out.println(ansi().fg(GREEN).a(greenString).fg(RED).a(redString).reset());
    }

    // 输出 ERROR (红)
    static void Error(String log) {
        System.out.println(ansi().fgBrightRed().a(log));
    }
}